package red.cyq.modules.web;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/freeMarker")
public class FreeMarkerContorller {

	/**
	 * url = /freeMarker/hello
	 * @param model
	 * @return
	 */
    @RequestMapping(value="/hello")
    public String helloFtl(Model model){
    	Map map = new HashMap();
    	map.put("1", "51");
    	map.put("2", "52");
    	map.put("3", "53");
    	map.put("4", "54");
    	model.addAttribute("map", map);
        model.addAttribute("name", "张三豐");
        return "helloFtl";
    }
    
}
